using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class zdss : MonoBehaviour
{
  public float Diedtime;
    // Start is called before the first frame update
    private void OnTriggerEnter2D(Collider2D collision)
    {
        collision.gameObject.GetComponent<fj> ().spawnTime -= 1;
        Destroy(gameObject, Diedtime);
    }
    // Update is called once per frame
    void Update()
    {

    }
}
